import httpFetch from 'share/httpFetch'

export default {
  //代理设置fp接口
  getProxyDefaultConfig() {
    return httpFetch.get('/api/workflow/proxy/opt/system')
  },
  postProxyConfig(params) {
    return httpFetch.post('/api/workflow/proxy/opt/addOrUpdate', params)
  },
  getProxyConfigList(params){
    return httpFetch.get('/api/workflow/proxy/opt/list', params)
  },
  deleteProxyConfig(param){
    return httpFetch.delete('/api/workflow/proxy/opt/delete', param)
  },
  getProxyConfigDetail(param){
    return httpFetch.get('/api/workflow/proxy/opt/find/one', param)
  },
  //代理设置fp接口
  //审批管控
  getControlDefaultConfig() {
    return httpFetch.get('/api/approval/control/opt/default')
  },
  postControlConfig(params) {
    return httpFetch.post('/api/approval/control/opt', params)
  },
  getControlConfigList(params){
    return httpFetch.get('/api/approval/control/opt/list', params)
  },
  getControlConfigDetail(param){
    return httpFetch.get('/api/approval/control/opt', param)
  },
  deleteControlConfig(param){
    return httpFetch.delete('/api/approval/control/opt', param)
  },
  //审批管控
  //审批功能
  getActionDefaultConfig() {
    return httpFetch.get('/api/approval/function/opt/default')
  },
  postActionConfig(params) {
    return httpFetch.post('/api/approval/function/opt', params)
  },
  getActionConfigList(params){
    return httpFetch.get('/api/approval/function/opt/list', params)
  },
  deleteActionConfig(param){
    return httpFetch.delete('/api/approval/function/opt', param)
  },
  getActionConfigDetail(param){
    return httpFetch.get('/api/approval/function/opt', param)
  },
  //审批功能
}